import {
    createRouter,
    createWebHistory
} from "vue-router";
const routes = [
    {
        path: '/',
        component: () => import('@/views/store/index.vue')
    },
    {
        path: '/search',
        component: () => import('@/views/store/search.vue')
    },
    {
        path: '/404',
        component: () => import('@/views/404/index.vue')
    },
    {
        path: '/500',
        component: () => import('@/views/500/index.vue')
    },
    {
        path: '/device',
        component: () => import('@/views/device/index.vue')
    },
    {
        path: '/:pathMatch(.*)',
        redirect: '/404',
    }
];
const router = createRouter({
    history: createWebHistory(),
    routes,
})
export default router;